package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontvo.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Y丶HS练习谷粒商城
 * @since 2022-09-24
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 根据id查询实体
     * 此实体是多表组合实体
     * @param courseId 课程id
     * @return 返回组装对象
     */
    CoursePublishVo findCoursePublishVoById(@Param("courseId") String courseId);
    /**
     * 根据课程id获取想关信息
     * @param courseId
     * @return
     */
    CourseWebVo getBaseCourseById(@Param("courseId") String courseId);
}
